#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 0;
	
	while (scanf("%d", &a) == 1)
	{
		
		int b = 0;
		int c = 0;

		int d = 1;

		for (int i = 0; i < (a + 1) / 2; i++)
		{
			for (int s = i; s > 0; s--)
			{
				printf(" ");
			}
			printf("*");
			for (int j = b; j <= a - 3; j++)
			{
				printf(" ");

			}
			b++;
			b++;
			if (a % 2 != 0 && i == (a + 1) / 2 - 1)
			{
				printf("\n");
				break;
			}
			else
			{
				printf("*\n");
			}

		}

		for (int i = 0; i < a / 2; i++)
		{
			for (int s = i; s < a / 2 - 1; s++)
			{
				printf(" ");
			}
			printf("*");
			if (a % 2 == 0)
			{
				for (int j = a / 2; j > a / 2 - c; j--)
				{
					printf(" ");
				}
				c++;
				c++;
			}
			else
			{

				for (int j = a / 2; j > a / 2 - d; j--)
				{
					printf(" ");
				}
				d++;
				d++;
			}
			printf("*\n");

		}
		
	}
	return 0;
}